package com.ruoyi.financial.service.impl;

import java.util.List;

import com.ruoyi.financial.domain.FxyFinancialEmployee;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.financial.mapper.FxyFinancialEmployeeMapper;
import com.ruoyi.financial.service.IFxyFinancialEmployeeService;

/**
 * 职员表Service业务层处理
 * 
 * @author zx
 * @date 2025-02-28
 */
@Slf4j
@Service
public class FxyFinancialEmployeeServiceImpl implements IFxyFinancialEmployeeService 
{
    @Autowired
    private FxyFinancialEmployeeMapper fxyFinancialEmployeeMapper;

    /**
     * 查询职员表
     * 
     * @param id 职员表主键
     * @return 职员表
     */
    @Override
    public FxyFinancialEmployee selectFxyFinancialEmployeeById(Long id)
    {
        return fxyFinancialEmployeeMapper.selectFxyFinancialEmployeeById(id);
    }

    /**
     * 查询职员表列表
     * 
     * @param fxyFinancialEmployee 职员表
     * @return 职员表
     */
    @Override
    public List<FxyFinancialEmployee> selectFxyFinancialEmployeeList(FxyFinancialEmployee fxyFinancialEmployee)
    {
        return fxyFinancialEmployeeMapper.selectFxyFinancialEmployeeList(fxyFinancialEmployee);
    }

    /**
     * 新增职员表
     * 
     * @param fxyFinancialEmployee 职员表
     * @return 结果
     */
    @Override
    public int insertFxyFinancialEmployee(FxyFinancialEmployee fxyFinancialEmployee)
    {
        return fxyFinancialEmployeeMapper.insertFxyFinancialEmployee(fxyFinancialEmployee);
    }

    /**
     * 修改职员表
     * 
     * @param fxyFinancialEmployee 职员表
     * @return 结果
     */
    @Override
    public int updateFxyFinancialEmployee(FxyFinancialEmployee fxyFinancialEmployee)
    {
        return fxyFinancialEmployeeMapper.updateFxyFinancialEmployee(fxyFinancialEmployee);
    }

    /**
     * 批量删除职员表
     * 
     * @param ids 需要删除的职员表主键
     * @return 结果
     */
    @Override
    public int deleteFxyFinancialEmployeeByIds(Long[] ids)
    {
        return fxyFinancialEmployeeMapper.deleteFxyFinancialEmployeeByIds(ids);
    }

    /**
     * 删除职员表信息
     * 
     * @param id 职员表主键
     * @return 结果
     */
    @Override
    public int deleteFxyFinancialEmployeeById(Long id)
    {
        return fxyFinancialEmployeeMapper.deleteFxyFinancialEmployeeById(id);
    }



}

